package com.bjsxt.livegoods.banner.client.service.impl;

import com.bjsxt.livegoods.banner.client.service.BannerService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;
@Service
public class BannerServiceImpl implements BannerService {
    /**
     * 服务降级，将图片返回
     * @return
     */
    @Override
    public Map<String, Object> getBanners() {
        Map<String,Object> result=new HashMap<>();
        result.put("status",200);
        result.put("results",new String[]{
           "http://192.168.222.128:8888/group1/M00/00/00/wKjegGKUyoiAEkhqAACipnT_TbQ492.jpg",
           "http://192.168.222.128:8888/group1/M00/00/00/wKjegGKUyquAUnO2AAA8Yoqk7Gg151.jpg",
           "http://192.168.222.128:8888/group1/M00/00/00/wKjegGKUysOAOEWCAAQbS9w_928214.jpg",
           "http://192.168.222.128:8888/group1/M00/00/00/wKjegGKUytSAQjMuAAEVmn0Pvp0516.jpg",
        });
        return result;
    }
}
